/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enumisomorph;

/**
 *
 * @author Libra
 */
public class Group {

    static int[][] slot = new int[729][6];

    static void listAll() {
        int counter = 0;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                for (int k = 0; k < 3; k++) {
                    for (int l = 0; l < 3; l++) {
                        for (int m = 0; m < 3; m++) {
                            for (int n = 0; n < 3; n++) {
                                dp(i + "," + j + "," + k + "," + l + "," + m + "," + n);
                                counter++;
                                dp(counter);
                            }
                        }
                    }
                }
            }
        }
    }

    static void fillAll() {
        int counter = 0;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                for (int k = 0; k < 3; k++) {
                    for (int l = 0; l < 3; l++) {
                        for (int m = 0; m < 3; m++) {
                            for (int n = 0; n < 3; n++) {
                                slot[counter][0] = i;
                                slot[counter][1] = j;
                                slot[counter][2] = k;
                                slot[counter][3] = l;
                                slot[counter][4] = m;
                                slot[counter][5] = n;
                                counter++;
                            }
                        }
                    }
                }
            }
        }
    }

    static void listSlot() {
        for (int i = 0; i < 729; i++) {
            for (int j = 0; j < 6; j++) {
                dpp(slot[i][j] + ",");
            }
            dpp("\n");
        }
    }
    
    static int[] listSlot(int i){
        return slot[i];
    }

    static void dp(Object ob) {
        System.out.println(ob.toString());
    }

    static void dpp(Object ob) {
        System.out.print(ob.toString());
    }
}
